
package cs.remoteapp;
/**
 * The TextMessage class permit the user to
 * communicate with another user by text
 * @author      4INFO - A1
 * @version     1.0
 */
public class TextMessage extends Message {

	/**
	 * Serialization id
	 */
	private static final long serialVersionUID = -2770809300856307047L;
	
	/**
	 * The message text
	 */
	private String text;
	
	/**
	 * constructor
	 * @param username the sender username 
	 * @param text the textMessage
	 */
	public TextMessage(String username, String text) {
		super(username);
		this.text = text;
	}
	
	/**
	 * get the text of the message
	 * @return the textMessage
	 */
	public String getText() {
		return text;
	}

}
